/*
Theme Name: Lehofer Child
Theme URI: https://lehofer.com
Description: Personal brand theme for Martin Lehofer
Author: Martin Lehofer
Template: generatepress
Version: 2.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,200;0,300;0,400;0,500;0,700;1,200&display=swap');

:root {
  --black:   #0f0f0f;
  --mid:     #666;
  --faint:   #999;
  --rule:    #e8e8e8;
  --red:     #cc0000;
  --white:   #fff;
  --surface: #f5f5f5;
  --font:    'Jost', sans-serif;
}

/* ── RESET GENERATEPRESS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body,
#page, #content, .site-content, .content-area,
.site-main, main#main, .entry-content, .hentry, article {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  flex: none !important;
}

.site-header, .main-navigation, .nav-previous, .nav-next,
.post-navigation, .site-footer, #comments, .page-header,
.breadcrumb-trail, .inside-article > header,
.inside-article > footer { display: none !important; }

body {
  font-family: var(--font) !important;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.ml-nav {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-bottom: 1px solid var(--black);
  width: 100%;
}
.ml-nav-name {
  font-size: 15px; font-weight: 500; letter-spacing: .02em;
  color: var(--black); text-decoration: none;
}
.ml-nav-links {
  display: flex; gap: 40px; list-style: none; margin: 0; padding: 0;
}
.ml-nav-links a {
  font-size: 13px; font-weight: 300; color: var(--mid);
  text-decoration: none; transition: color .15s;
}
.ml-nav-links a:hover { color: var(--black); }
.ml-lang { font-size: 12px; color: var(--faint); }
.ml-lang a { color: var(--faint); text-decoration: none; margin: 0 3px; }
.ml-lang a.active, .ml-lang a:hover { color: var(--black); }

/* ── HERO ── */
.ml-hero {
  display: grid !important;
  grid-template-columns: 280px 1fr;
  border-bottom: 1px solid var(--black);
  width: 100%;
}
.ml-hero-meta {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ml-hero-portrait img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 24px;
}
.ml-hero-meta-label {
  font-size: 11px; font-weight: 300; color: var(--faint); line-height: 2.2;
}
.ml-hero-meta-label span { display: block; }
.ml-hero-meta-bottom { padding-top: 40px; }
.ml-stat { margin-bottom: 20px; }
.ml-stat-n {
  font-size: 36px; font-weight: 200; color: var(--black);
  line-height: 1; display: block; letter-spacing: -.02em;
}
.ml-stat-n.red { color: var(--red); }
.ml-stat-l {
  font-size: 11px; font-weight: 300; color: var(--faint);
  display: block; margin-top: 3px;
}

/* ── HERO RIGHT ── */
.ml-hero-right {
  display: grid !important;
  grid-template-rows: 420px auto;
}
.ml-hero-photo {
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.ml-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.ml-hero-main {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ── BUTTONS ── */
.ml-btn {
  display: inline-block; padding: 12px 24px;
  background: var(--black); color: var(--white) !important;
  font-family: var(--font); font-size: 13px; letter-spacing: .04em;
  text-decoration: none; font-weight: 400; white-space: nowrap;
  transition: background .15s; border: none; cursor: pointer;
}
.ml-btn:hover { background: #333; }
.ml-btn-ghost {
  font-size: 13px; font-weight: 300; color: var(--mid);
  text-decoration: none; white-space: nowrap;
}
.ml-btn-ghost:hover { color: var(--black); }


/* ── STRIP ── */
.ml-strip {
  display: flex !important; overflow: hidden;
  background: var(--black); width: 100%;
}
.ml-strip-item {
  font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,.35); padding: 13px 40px 13px 0; white-space: nowrap;
}
.ml-strip-item b { color: var(--red); font-weight: 400; margin-right: 10px; }

/* ── SECTION INTRO ── */
.ml-section-intro {
  display: grid !important;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid var(--rule);
  width: 100%;
}
.ml-section-intro-l {
  padding: 28px 48px; border-right: 1px solid var(--rule);
  display: flex; align-items: center;
}
.ml-section-intro-l span { font-size: 12px; font-weight: 300; color: var(--faint); }
.ml-section-intro-r {
  padding: 28px 56px; font-size: 28px; font-weight: 200;
  color: var(--black); letter-spacing: -.01em;
}

/* ── CASES ── */
.ml-cases { display: block !important; border-bottom: 1px solid var(--black); width: 100%; }
.ml-case {
  display: grid !important;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid var(--rule); transition: background .2s;
}
.ml-case-link {
  text-decoration: none;
  color: inherit;
  display: grid !important;
  grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid var(--rule);
  transition: background .2s;
}
.ml-case-link:last-child { border-bottom: none; }
.ml-case-link:hover { background: #fafafa; }
.ml-case:last-child { border-bottom: none; }
.ml-case:hover { background: #fafafa; }
.ml-case-index {
  padding: 36px 48px; border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; justify-content: space-between;
}
.ml-case-num {
  font-size: 56px; font-weight: 200; color: var(--rule);
  line-height: 1; letter-spacing: -.03em; display: block;
}
.ml-case-kpi-n {
  font-size: 28px; font-weight: 700; color: var(--red);
  display: block; line-height: 1;
}
.ml-case-kpi-l {
  font-size: 11px; font-weight: 300; color: var(--faint);
  display: block; margin-top: 4px;
}
.ml-case-content { padding: 36px 56px; }
.ml-case-tag { font-size: 12px; font-weight: 300; color: var(--faint); display: block; margin-bottom: 14px; }
.ml-case-title { font-size: 22px; font-weight: 500; color: var(--black); line-height: 1.2; margin-bottom: 14px; }
.ml-case-desc { font-size: 14px; line-height: 1.8; color: var(--mid); font-weight: 300; }

/* ── EXPERTISE ── */
.ml-expertise { display: block !important; border-bottom: 1px solid var(--black); width: 100%; }
.ml-exp-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); }
.ml-exp-item {
  padding: 36px 40px; border-right: 1px solid var(--rule);
  border-top: 1px solid var(--rule); box-sizing: border-box;
}
.ml-exp-item:nth-child(3n) { border-right: none; }
.ml-exp-n { font-size: 11px; font-weight: 300; color: var(--faint); display: block; margin-bottom: 16px; }
.ml-exp-name { font-size: 17px; font-weight: 500; color: var(--black); margin-bottom: 10px; line-height: 1.2; }
.ml-exp-desc { font-size: 13px; line-height: 1.8; color: var(--mid); font-weight: 300; }

/* ── INSIGHTS ── */
.ml-insights { display: block !important; border-bottom: 1px solid var(--black); width: 100%; }
.ml-ins-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); }
.ml-ins-card {
  padding: 36px 40px; border-right: 1px solid var(--rule);
  border-top: 1px solid var(--rule); transition: background .2s;
  text-decoration: none; display: block; color: inherit; box-sizing: border-box;
}
.ml-ins-card:last-child { border-right: none; }
.ml-ins-card:hover { background: #fafafa; }
.ml-ins-tag { font-size: 12px; font-weight: 300; color: var(--red); display: block; margin-bottom: 14px; }
.ml-ins-title { font-size: 18px; font-weight: 500; color: var(--black); line-height: 1.3; margin-bottom: 12px; }
.ml-ins-body { font-size: 13px; line-height: 1.8; color: var(--mid); font-weight: 300; margin-bottom: 20px; }
.ml-ins-meta { font-size: 11px; font-weight: 300; color: var(--faint); }

/* ── CONTACT ── */
.ml-contact {
  display: grid !important; grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid var(--black); width: 100%;
}
.ml-contact-l {
  padding: 56px 48px; border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; justify-content: space-between;
}
.ml-contact-label { font-size: 12px; font-weight: 300; color: var(--faint); }
.ml-contact-links { display: flex; flex-direction: column; }
.ml-contact-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--mid); text-decoration: none;
  font-weight: 300; transition: color .15s;
}
.ml-contact-link:last-child { border-bottom: 1px solid var(--rule); }
.ml-contact-link:hover { color: var(--black); }
.ml-contact-link span { color: var(--faint); }
.ml-contact-r { padding: 56px; }
.ml-contact-h {
  font-size: clamp(40px, 5vw, 64px); font-weight: 200; line-height: .9;
  color: var(--black); margin-bottom: 28px; letter-spacing: -.02em;
}
.ml-contact-h strong { font-weight: 700; color: var(--red); }
.ml-contact-desc {
  font-size: 15px; line-height: 1.8; color: var(--mid);
  font-weight: 300; max-width: 440px; margin-bottom: 40px;
}
.ml-form-row { margin-bottom: 24px; }
.ml-f-label { display: block; font-size: 11px; font-weight: 300; color: var(--faint); margin-bottom: 8px; }
.ml-f-input {
  display: block; width: 100%; background: transparent;
  border: none; border-bottom: 1px solid var(--rule);
  padding: 8px 0; font-family: var(--font); font-size: 14px;
  color: var(--black); outline: none; transition: border-color .2s; font-weight: 300;
}
.ml-f-input:focus { border-bottom-color: var(--black); }
.ml-f-input::placeholder { color: var(--faint); }
textarea.ml-f-input { resize: none; height: 72px; }

/* ── FOOTER ── */
.ml-footer { display: grid !important; grid-template-columns: 1fr 2fr; width: 100%; }
.ml-footer-l {
  padding: 20px 48px; border-right: 1px solid var(--rule);
  font-size: 13px; font-weight: 400; color: var(--black);
}
.ml-footer-r { padding: 20px 56px; display: flex; justify-content: space-between; align-items: center; }
.ml-footer-copy { font-size: 11px; font-weight: 300; color: var(--faint); }
.ml-footer-nav { display: flex; gap: 28px; }
.ml-footer-nav a { font-size: 11px; font-weight: 300; color: var(--faint); text-decoration: none; }
.ml-footer-nav a:hover { color: var(--black); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .ml-nav { padding: 20px 24px; flex-wrap: wrap; gap: 12px; }
  .ml-hero { grid-template-columns: 1fr !important; }
  .ml-hero-meta { border-right: none; border-bottom: 1px solid var(--rule); }
  .ml-hero-main { padding: 36px 24px; }
  .ml-hero-body { grid-template-columns: 1fr !important; }
  .ml-hero-actions { align-items: flex-start; }
  .ml-section-intro { grid-template-columns: 1fr !important; }
  .ml-section-intro-l { border-right: none; }
  .ml-case { grid-template-columns: 1fr !important; }
  .ml-case-link { grid-template-columns: 1fr !important; }
  .ml-case-index { border-right: none; border-bottom: 1px solid var(--rule); }
  .ml-exp-grid { grid-template-columns: 1fr 1fr !important; }
  .ml-ins-grid { grid-template-columns: 1fr !important; }
  .ml-contact { grid-template-columns: 1fr !important; }
  .ml-contact-l { border-right: none; border-bottom: 1px solid var(--rule); }
  .ml-footer { grid-template-columns: 1fr !important; }
  .ml-footer-l { border-right: none; border-bottom: 1px solid var(--rule); }
}

@media (max-width: 600px) {
  .ml-exp-grid { grid-template-columns: 1fr !important; }
  .ml-h1 { font-size: 40px; }
}

/* ── SUBPAGE ── */
.ml-subpage {
  display: grid !important;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 120px);
  border-bottom: 1px solid var(--black);
  width: 100%;
}
.ml-subpage-back {
  padding: 48px 32px;
  border-right: 1px solid var(--rule);
}
.ml-back-link {
  font-size: 12px;
  font-weight: 300;
  color: var(--mid);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .15s;
}
.ml-back-link:hover { color: var(--black); }
.ml-subpage-content {
  padding: 56px 64px;
  max-width: 820px;
}
.ml-subpage-title {
  font-size: 36px;
  font-weight: 200;
  color: var(--black);
  letter-spacing: -.02em;
  margin-bottom: 40px;
  line-height: 1;
}
.ml-subpage-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--mid);
  font-weight: 300;
}
.ml-subpage-body h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
  margin: 40px 0 16px;
  letter-spacing: -.01em;
}
.ml-subpage-body h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  margin: 28px 0 12px;
}
.ml-subpage-body p { margin-bottom: 20px; }
.ml-subpage-body a { color: var(--black); }
.ml-subpage-body a:hover { color: var(--red); }

/* ── BLOG SINGLE ── */
.single .ml-subpage-body {
  font-size: 16px;
  line-height: 1.9;
}
.ml-post-meta {
  font-size: 12px;
  font-weight: 300;
  color: var(--faint);
  margin-bottom: 40px;
  letter-spacing: .02em;
}

@media (max-width: 900px) {
  .ml-subpage { grid-template-columns: 1fr !important; }
  .ml-subpage-back { border-right: none; border-bottom: 1px solid var(--rule); padding: 24px; }
  .ml-subpage-content { padding: 36px 24px; }
}
a.ml-case-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.ml-case-link:hover {
  background: #f9f9f9;
}

/* ── H1 SPANS ── */
.ml-h1 { font-size: clamp(40px, 5vw, 72px); font-weight: 200; line-height: 1; letter-spacing: -.03em; margin-bottom: 28px; }
.ml-h1 .w-light { display: block; font-weight: 200; }
.ml-h1 .w-bold  { display: block; font-weight: 700; }
.ml-h1 .w-red   { color: var(--red); }