/* =========================================================================
   thechameleonway.com — site overrides on top of _shared/css/base.css.
   Per-domain accent + multi-page primitives the K8Box-family landings
   don't need (lang-switcher, footer grid, product card grid, etc.).
   ========================================================================= */

:root {
  /* TCW magenta — primary stop of the logo gradient (#c8007f →
     #a11880 → #001498). The mid-stop violet drives accent-soft so
     gradients in the hero echo the chameleon's body colour. */
  --accent: #c8007f;
  --accent-soft: #a11880;
  --accent-deep: #001498;
  --accent-glow: rgba(200, 0, 127, 0.16);
  --accent-tint: rgba(200, 0, 127, 0.06);
  --accent-paper: #fdf2f9;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Brighter magenta on dark for legibility; deep blue stays put
       (it's already saturated enough). */
    --accent: #e4338f;
    --accent-soft: #b04ab2;
    --accent-glow: rgba(228, 51, 143, 0.22);
    --accent-tint: rgba(255, 255, 255, 0.04);
    --accent-paper: #1a0d18;
  }
}

/* ----- brand logo (header) --------------------------------------------- */

/* The header brand link wraps an <img> of the SVG logo. Height is
   capped (mobile 28, desktop 36) and the gradient stays intact —
   no currentColor trickery on the multi-stop logos. A subtle
   drop-shadow on hover hints at depth without spinning anything. */

.brand--logo {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0;
  border-bottom: none;
  /* fade-in on mount */
  animation: brand-fade 280ms ease both;
}

.brand--logo img {
  height: 100%;
  width: auto;
  display: block;
  transition: filter 220ms ease, transform 220ms ease;
}

.brand--logo:hover img {
  filter: drop-shadow(0 2px 8px var(--accent-glow));
  transform: translateY(-1px);
}

@keyframes brand-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .brand--logo,
  .brand--logo:hover img {
    animation: none;
    transform: none;
  }
}

@media (max-width: 720px) {
  .brand--logo { height: 28px; }
}

/* Print: anything fancier than a flat black logo will rasterise badly
   on monochrome printers — fall back to a high-contrast filter. */
@media print {
  .brand--logo img {
    filter: grayscale(1) contrast(1.1);
  }
}

/* ----- nav extensions: language switcher --------------------------------- */

.site-header nav {
  flex-wrap: wrap;
  row-gap: 8px;
}

.lang-switcher {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.lang-switcher a {
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 3px;
  border-bottom: none;
}

.lang-switcher a:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.lang-switcher a[aria-current="true"] {
  background: var(--accent);
  color: white;
}

/* ----- main spacing ----------------------------------------------------- */

main {
  padding-bottom: 80px;
}

.page-intro {
  padding: 64px 0 32px;
}

.page-intro h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  font-weight: 800;
}

.page-intro .lede {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 60ch;
  margin: 0;
}

/* ----- credibility marker (e.g. iSAQB on /beratung) -------------------- */

.credibility-marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 8px 14px 8px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-soft);
  max-width: 60ch;
}

.credibility-marker__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid var(--accent-glow);
  text-transform: uppercase;
  flex-shrink: 0;
}

/* `.page-section` vertical padding now lives in `_shared/css/base.css`
   (80px at desktop, 48px on mobile <720px). We keep only the per-section
   top border so the corporate pages still read like a stack of stacked
   sections. */
.page-section {
  border-top: 1px solid var(--border);
}
.page-section:first-of-type {
  border-top: none;
}
.page-section h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}
.page-section h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  font-weight: 600;
}

.page-section--paper {
  background: var(--accent-paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 32px 0;
}

/* ----- product cards grid ----------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.product-card .logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  border-bottom: none;
}

.product-card .logo .accent {
  color: var(--accent);
}

.product-card .tag {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 4px 0 0;
}

.product-card .arrow {
  margin-top: auto;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

/* ----- "What we believe" — declarative statements ----------------------- */

.beliefs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
  counter-reset: belief;
}

.beliefs-list > li {
  position: relative;
  padding-left: 56px;
  counter-increment: belief;
}

.beliefs-list > li::before {
  content: counter(belief, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-tint);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-glow);
}

.beliefs-list h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.beliefs-list p {
  margin: 0;
  color: var(--text-soft);
}

/* ----- consulting offering grid ----------------------------------------- */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.offer-card {
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.offer-card .format {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.offer-card p {
  font-size: 14px;
  color: var(--text-soft);
}

.offer-card ul {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-soft);
}

/* ----- contact form ----------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  align-self: start;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.contact-side h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.contact-side p {
  font-size: 14px;
  color: var(--text-soft);
}
.contact-side a {
  font-family: var(--font-mono);
  font-size: 14px;
}

/* ----- legal-text typography ------------------------------------------- */

.legal-text {
  max-width: 70ch;
}
.legal-text h2 {
  font-size: 22px;
  margin-top: 32px;
}
.legal-text h3 {
  font-size: 16px;
  margin-top: 20px;
  font-weight: 600;
}
.legal-text p,
.legal-text li {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.65;
}
.legal-text dl {
  margin: 12px 0;
}
.legal-text dt {
  font-weight: 600;
  color: var(--text);
}
.legal-text dd {
  margin: 0 0 8px 0;
  color: var(--text-soft);
}

/* ----- footer ----------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 48px 0 32px;
  background: var(--bg-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: none;
}

.footer-col a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-brand {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  max-width: 30ch;
}

.footer-trust {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.footer-trust__certs {
  flex: 1;
  min-width: 0;
}

.footer-trust__exali {
  display: inline-flex;
  flex-shrink: 0;
}

.footer-trust__exali img {
  width: 64px;
  height: 64px;
  display: block;
}

/* ----- Exali trust card (larger variant on /beratung) ------------------ */

.exali-trust-card {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  max-width: 60ch;
}

.exali-trust-card__seal {
  flex-shrink: 0;
}

.exali-trust-card__seal img {
  width: 96px;
  height: 96px;
  display: block;
}

.exali-trust-card__copy h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.exali-trust-card__copy p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

@media (max-width: 480px) {
  .exali-trust-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* When the trust strip precedes .footer-meta, the strip already
   carries the top border — drop the duplicate on .footer-meta so we
   don't get a double rule. */
.footer-trust + .footer-meta {
  border-top: none;
  padding-top: 8px;
}

.footer-meta {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-sep { color: var(--border-strong); }

/* ----- hero halo (TCW home) -------------------------------------------- */

.hero--home {
  padding: 80px 0 48px;
}

.hero--home .eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero--home h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero--home h1 .accent {
  color: var(--accent);
}

.hero--home .lede {
  font-size: 19px;
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 0 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.cta-primary,
.cta-secondary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border-bottom: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.cta-primary {
  background: var(--accent);
  color: white;
}

.cta-secondary {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--bg-elevated);
}

.cta-primary:hover,
.cta-secondary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ----- 404 -------------------------------------------------------------- */

.error-404 {
  padding: 120px 0;
  text-align: center;
}

.error-404 .glyph {
  font-family: var(--font-mono);
  font-size: 96px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

.error-404 h1 {
  font-size: 28px;
  margin: 0 0 12px;
}

.error-404 p {
  color: var(--text-soft);
  max-width: 50ch;
  margin: 0 auto 24px;
}

/* ----- compact tables for legal pages ----------------------------------- */

table.compact {
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
}

table.compact th,
table.compact td {
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.compact th {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
