/* euromarcom Personal Branding landing (/personal-branding/).
   Loaded only on this page; every selector is scoped under .empb / body.empb-page.
   Theme euromarcom D tokens with local fallbacks. Typography-first: Source Serif 4
   headlines, Instrument Sans text, white / cool off-white surfaces, olive + dark green
   only as accents, hairline rules, no imagery, no icons. */

.empb {
  --p-white: #FFFFFF;
  --p-tint: #F5F7F6;              /* cool off-white (no beige) */
  --p-ink: var(--ink, #1A1816);
  --p-ink-soft: var(--ink-soft, #3A3530);
  --p-ink-muted: var(--ink-muted, #6B6560);
  --p-olive: var(--olive, #5D7246);
  --p-olive-dark: var(--olive-dark, #4A5C38);
  --p-olive-deep: var(--olive-deep, #3D4C2E);
  --p-forest: #26301D;
  --p-rule: #DDE3DD;
  --p-rule-strong: var(--rule-strong, #1A1816);
  --p-err: #9A3B2B;
  --p-serif: var(--serif, "Source Serif 4", Georgia, "Times New Roman", serif);
  --p-sans: var(--sans, "Instrument Sans", system-ui, -apple-system, sans-serif);
  --p-max: 1180px;
  --p-gutter: clamp(1.25rem, 4.5vw, 3rem);

  display: block;
  background: var(--p-white);
  color: var(--p-ink);
  font-family: var(--p-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

html:has(body.empb-page) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(body.empb-page) { scroll-behavior: auto; } }

.empb *, .empb *::before, .empb *::after { box-sizing: border-box; }
/* Theme sets html scroll-padding-top (header + 1.75rem); sections bring their own padding. */
.empb [id] { scroll-margin-top: 0; }
html:not(:has(.site-header)) .empb [id] { scroll-margin-top: 1rem; }

.empb-wrap {
  max-width: var(--p-max);
  margin: 0 auto;
  padding-left: var(--p-gutter);
  padding-right: var(--p-gutter);
}
/* Theme reserves FAB space on .wrap; FAB is hidden here. */
body.empb-page .empb .empb-wrap { padding-right: var(--p-gutter); }

.empb-narrow { max-width: 50rem; }

.empb-sec {
  padding: clamp(4.25rem, 9vw, 8rem) 0;
  border-top: 1px solid var(--p-rule);
}
.empb-sec--tint { background: var(--p-tint); }

.empb p { margin: 0 0 1rem; }
.empb p:last-child { margin-bottom: 0; }

.empb-nowrap { white-space: nowrap; }

.empb-sr {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* —— Type —— */
.empb-eyebrow {
  font-family: var(--p-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p-olive);
  margin: 0 0 1.25rem !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.4;
}
.empb-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.empb-h1 {
  font-family: var(--p-serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 7.2vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--p-ink);
  margin: 0 0 1.75rem;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: balance;
}
.empb-h1__line { display: block; }
.empb-h1__line--emph { font-style: italic; color: var(--p-olive-deep); }

.empb-h2 {
  font-family: var(--p-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.9vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--p-ink);
  margin: 0 0 1.25rem;
  max-width: 22ch;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.empb h3 {
  font-family: var(--p-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--p-ink);
  margin: 0 0 0.6rem;
  line-height: 1.2;
  text-wrap: balance;
}

.empb-lead {
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  color: var(--p-ink-soft);
  max-width: 40rem;
}

.empb-intro {
  font-size: clamp(1.05rem, 1.6vw, 1.175rem);
  line-height: 1.6;
  color: var(--p-ink-soft);
  max-width: 34rem;
}

.empb-prose p { color: var(--p-ink-soft); max-width: 40rem; margin-bottom: 1.15rem; }

/* —— Section heads —— */
.empb-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.empb-head--split { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .empb-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 5.5rem);
    align-items: end;
  }
  .empb-head--split .empb-h2 { margin-bottom: 0; }
}

/* —— Buttons (theme .cta-pill + safe fallback) —— */
.empb .empb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  border: 0;
  background: var(--p-olive);
  color: #fff;
  font-family: var(--p-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  transition: background 0.2s ease;
}
.empb .empb-btn:hover { background: var(--p-olive-dark); color: #fff; }
.empb .empb-btn:focus-visible { outline: 2px solid var(--p-olive-deep); outline-offset: 3px; }
.empb .empb-btn .cta-arrow { color: #fff; transition: transform 0.2s ease; }
.empb .empb-btn:hover .cta-arrow { transform: translateX(3px); }
.empb .empb-btn[disabled] { opacity: 0.7; cursor: progress; }

.empb-cta { margin: 2.25rem 0 0 !important; }
.empb-cta--center { text-align: center; margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; }

/* —— 01 Hero —— */
.empb-hero {
  background: var(--p-white);
  padding: clamp(4rem, 11vw, 9rem) 0 clamp(4rem, 10vw, 8rem);
  position: relative;
}
.empb-hero::after {               /* thin olive accent rule */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--p-rule);
}
.empb-hero__lead { max-width: 41rem; }

/* —— 02 Goals tiles —— */
.empb-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--p-rule);
  border: 1px solid var(--p-rule);
}
@media (min-width: 640px) { .empb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .empb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.empb-tile {
  background: var(--p-white);
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  position: relative;
}
.empb-tile::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--p-olive);
  margin-bottom: 1.1rem;
}
.empb .empb-tile__title { font-size: clamp(1.2rem, 1.8vw, 1.375rem); }
.empb-tile p { color: var(--p-ink-soft); font-size: 0.975rem; line-height: 1.6; }

/* —— 03 Why —— */
.empb-why .empb-h2 { margin-bottom: 2rem; }
.empb-why .empb-prose p { font-size: 1.125rem; line-height: 1.7; }
.empb-statement {
  text-wrap: pretty;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0 !important;
  padding: 0.25rem 0 0.25rem clamp(1.25rem, 3vw, 2rem);
  border-left: 3px solid var(--p-olive);
  font-family: var(--p-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--p-olive-deep);
  max-width: 38rem;
}

/* —— 04 Services —— */
.empb-blocks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 900px) {
  .empb-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .empb-block--emph { grid-column: 1 / -1; }
}
.empb-block {
  background: var(--p-white);
  border: 1px solid var(--p-rule);
  border-top: 2px solid var(--p-olive);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.empb-block__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-olive);
  margin-bottom: 1.25rem !important;
}
.empb-block__num { font-variant-numeric: tabular-nums; }
.empb .empb-block__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.18;
  margin-bottom: 1rem;
  max-width: 24ch;
}
.empb-block__text { color: var(--p-ink-soft); max-width: 40rem; }

.empb-block--emph {
  background: var(--p-forest);
  border-color: var(--p-forest);
  border-top-color: #A9B98F;
  color: #fff;
}
@media (min-width: 900px) {
  .empb-block--emph {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
    padding: clamp(2.5rem, 4.5vw, 3.75rem);
  }
  .empb-block--emph .empb-block__label { grid-column: 1 / -1; }
}
.empb-block--emph .empb-block__label { color: #C3D0AE; }
.empb .empb-block--emph .empb-block__title { color: #fff; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.empb-block--emph .empb-block__text { color: rgba(255, 255, 255, 0.86); font-size: 1.0625rem; }

/* —— 05 Process —— */
.empb-process .empb-h2 { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.empb-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--p-rule-strong);
}
@media (min-width: 720px) { .empb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }
@media (min-width: 1100px) { .empb-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; } }
.empb-step {
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--p-rule);
}
@media (min-width: 1100px) { .empb-step { border-bottom: 0; padding-bottom: 0; } }
.empb-step__num {
  font-family: var(--p-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--p-olive);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem !important;
  font-variant-numeric: tabular-nums;
}
.empb .empb-step__title { font-size: 1.375rem; }
.empb-step p:last-child { color: var(--p-ink-soft); font-size: 0.975rem; line-height: 1.6; }

/* —— 06 Offers —— */
.empb-offerlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 960px) { .empb-offerlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.empb-offer {
  background: var(--p-white);
  border: 1px solid var(--p-rule);
  padding: clamp(1.6rem, 2.8vw, 2.25rem);
}
.empb .empb-offer__title { font-size: clamp(1.3rem, 2vw, 1.55rem); margin-bottom: 0.5rem; }
.empb-offer__sub {
  font-weight: 600;
  color: var(--p-olive-deep);
  font-size: 0.975rem;
  line-height: 1.45;
  padding-bottom: 1rem;
  margin-bottom: 1rem !important;
  border-bottom: 1px solid var(--p-rule);
}
.empb-offer p:last-child { color: var(--p-ink-soft); font-size: 0.975rem; line-height: 1.6; }

/* —— 07 Agency (like homepage #agentur: prose + intl-block) —— */
.empb-agency .empb-h2 { max-width: 24ch; }
.empb-agency__prose { margin-top: 1.5rem; }
.empb-agency__prose p { max-width: 42rem; }
.empb-agency__sub {
  margin-top: clamp(2.75rem, 5vw, 3.5rem);
  padding-top: clamp(2.25rem, 4vw, 2.75rem);
  border-top: 1px solid var(--p-rule);
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .empb-agency__sub { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 3.5rem; align-items: start; }
}
.empb .empb-agency__h3 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
.empb-agency__sub .empb-lead { max-width: none; }

/* —— 08 Contact + form —— */
.empb-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 1000px) {
  .empb-contact__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: clamp(3rem, 6vw, 5.5rem); align-items: start; }
  .empb-contact__copy { position: sticky; top: calc(var(--header-h, 5.25rem) + 2rem); }
}
.empb-contact__copy .empb-prose p { font-size: 1.0625rem; }

.empb-formbox {
  background: var(--p-white);
  border: 1px solid var(--p-rule);
  border-top: 2px solid var(--p-olive);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  min-width: 0;
}
.empb-form { margin: 0; }
.empb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 1.5rem; }
@media (min-width: 640px) { .empb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.empb-field { min-width: 0; }
.empb-field--full { grid-column: 1 / -1; }

.empb-field > label:not(.empb-check) {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--p-ink);
  margin-bottom: 0.45rem;
  letter-spacing: 0.005em;
}
.empb-req { color: var(--p-olive); }
.empb-opt { font-weight: 400; color: var(--p-ink-muted); }

.empb-form input[type="text"],
.empb-form input[type="email"],
.empb-form input[type="url"],
.empb-form select,
.empb-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;              /* ≥16px: no iOS zoom */
  line-height: 1.4;
  color: var(--p-ink);
  background: #fff;
  border: 1px solid #C5CDC5;
  border-radius: 4px;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.empb-form textarea { min-height: 8.5rem; resize: vertical; }
.empb-form input::placeholder, .empb-form textarea::placeholder { color: #8C918B; }
.empb-form input:focus, .empb-form select:focus, .empb-form textarea:focus {
  outline: none;
  border-color: var(--p-olive);
  box-shadow: 0 0 0 3px rgba(93, 114, 70, 0.18);
}
.empb-select { position: relative; }
.empb-select::after {
  content: "";
  position: absolute;
  right: 1rem; top: 50%;
  width: 0.5rem; height: 0.5rem;
  border: solid var(--p-ink-muted);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.empb-form select { padding-right: 2.5rem; cursor: pointer; }

.empb .empb-check {
  display: grid;
  margin: 0;
  font-weight: 400;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--p-ink-soft);
  position: relative;
}
.empb-check input { position: absolute; opacity: 0; width: 1.25rem; height: 1.25rem; margin: 0; left: 0; top: 0.1rem; }
.empb-check__box {
  width: 1.25rem; height: 1.25rem;
  border: 1.5px solid var(--p-ink-muted);
  border-radius: 3px;
  margin-top: 0.1rem;
  display: grid; place-items: center;
  background: #fff;
}
.empb-check input:checked + .empb-check__box { background: var(--p-olive); border-color: var(--p-olive); }
.empb-check input:checked + .empb-check__box::after {
  content: "";
  width: 0.35rem; height: 0.65rem;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.empb-check input:focus-visible + .empb-check__box { outline: 2px solid var(--p-olive); outline-offset: 2px; }
.empb-check a { color: var(--p-olive-deep); text-decoration: underline; text-underline-offset: 2px; }

.empb-error {
  display: none;
  margin: 0.4rem 0 0 !important;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--p-err);
}
.empb-field.is-invalid .empb-error { display: block; }
.empb-field.is-invalid input,
.empb-field.is-invalid select,
.empb-field.is-invalid textarea { border-color: var(--p-err); }
.empb-field.is-invalid .empb-check__box { border-color: var(--p-err); }
.empb-field--consent .empb-error { padding-left: 2rem; }

.empb-alert {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--p-err);
  background: #FBF3F1;
  color: var(--p-err);
  font-size: 0.9375rem;
  font-weight: 500;
}
.empb-alert[hidden] { display: none; }

.empb-reqnote { font-size: 0.8125rem; color: var(--p-ink-muted); margin: 1.25rem 0 0 !important; }
.empb-actions { margin-top: 1.5rem; }
.empb-actions .empb-btn { width: 100%; }
@media (min-width: 640px) { .empb-actions .empb-btn { width: auto; } }

.empb-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.empb-gate {
  margin: 0 0 1.5rem !important;
  padding: 0.75rem 1rem;
  background: #FFF8E1;
  border-left: 3px solid #C9A227;
  font-size: 0.875rem;
  color: #5A4A10;
}

.empb-success { text-align: left; padding: 0.5rem 0; }
.empb-success[hidden] { display: none; }
.empb-success:focus { outline: none; }
.empb-success__mark {
  display: block;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--p-olive);
  position: relative;
  margin-bottom: 1.25rem;
}
.empb-success__mark::after {
  content: "";
  position: absolute;
  left: 1.02rem; top: 0.66rem;
  width: 0.6rem; height: 1.1rem;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.empb-success__text {
  font-family: var(--p-serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--p-ink);
}
.empb-success__note { margin-top: 1rem !important; font-size: 0.875rem; color: #5A4A10; }
.empb-success__note[hidden] { display: none; }

/* —— Small screens —— */
@media (max-width: 480px) {
  .empb { font-size: 1rem; }
  .empb .empb-btn { width: 100%; }
  .empb-cta--center { text-align: left; }
}
