/* LP1 Modern layout. Colours come from CSS custom properties set inline on
   .lp-m (see jobheld_lp1_css_vars()). Loaded instead of lp1_style.css. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body { margin: 0; background: #ffffff; }

.lp-m {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #2a2f45;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
.lp-m *, .lp-m *::before, .lp-m *::after { box-sizing: border-box; }
.lp-m a { color: var(--lp-primary); }
.lp-m a:hover { color: var(--lp-primary-hover); }
.lp-m img { max-width: 100%; }

.lp-m-wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; width: 100%; }

/* Top bar */
.lp-m-topbar { border-bottom: 1px solid #e6e9f2; }
.lp-m-topbar-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.lp-m-logo { display: block; height: 30px; width: auto; }
.lp-m-topbar-divider { width: 1px; height: 22px; background: #d6dbea; }
.lp-m-company { font-size: 15px; font-weight: 500; color: #5a607a; }

/* Hero */
.lp-m-hero { background: var(--lp-tint); border-bottom: 1px solid #e6e9f2; }
.lp-m-hero-inner { display: flex; flex-direction: column; gap: 24px; padding-top: 52px; padding-bottom: 44px; }
.lp-m-title { margin: 0; max-width: 860px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; color: #141833; }
/* Long German compounds ("Elektroinstallationstechnikerlehrling:in") must not
   overflow at 360px; hyphens uses the lang attribute from the header. */
.lp-m-title { overflow-wrap: anywhere; hyphens: auto; }
.lp-m-subtitle { display: block; margin-top: 10px; font-size: 0.42em; line-height: 1.3; font-weight: 500; letter-spacing: 0; color: #5a607a; }
.lp-m-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp-m-chip { display: flex; align-items: center; gap: 8px; padding: 9px 16px; background: #ffffff; border: 1px solid var(--lp-tint-line); border-radius: 999px; font-size: 15px; font-weight: 500; color: #2a2f45; }
.lp-m-icon { flex-shrink: 0; color: var(--lp-primary); }

/* Body: aside right on desktop, first on mobile */
.lp-m-body { display: flex; flex-direction: row-reverse; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 44px; padding-bottom: 64px; }
.lp-m-aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; padding: 26px; border: 1px solid #e0e4f2; border-radius: 18px; background: #ffffff; }
@media (min-width: 960px) { .lp-m-aside { position: sticky; top: 24px; z-index: 10; } }
.lp-m-contact { display: flex; align-items: center; gap: 14px; }
.lp-m-contact-photo { width: 88px; height: 88px; flex-shrink: 0; object-fit: cover; border-radius: 14px; }
.lp-m-contact-text { display: flex; flex-direction: column; gap: 2px; }
.lp-m-contact-name { font-size: 18px; font-weight: 700; color: #141833; }
.lp-m-muted { font-size: 14px; color: #5a607a; }
.lp-m-center { text-align: center; }
.lp-m-apply { display: flex; flex-direction: column; gap: 8px; }
.lp-m .lp-m-btn { display: block; text-align: center; padding: 15px 20px; border-radius: 12px; background: var(--lp-primary); color: var(--lp-on-primary); font-size: 17px; font-weight: 700; text-decoration: none; }
.lp-m .lp-m-btn:hover { background: var(--lp-primary-hover); color: var(--lp-on-primary); }
.lp-m .lp-m-btn:focus-visible { outline: 3px solid #141833; outline-offset: 3px; }
.lp-m-phone { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid #e6e9f2; }
.lp-m .lp-m-phone-link { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; text-decoration: none; color: #141833; }

/* Feedback panel (lp1_feedback.css). The sticky aside is its own stacking
   context (hence z-index above); modern has no fixed mobile apply bar, so the
   panel sits at the bottom edge and clips its collapsed content. */
.lp-m .feedback-form-wrap:not(.fullscreen) { overflow: hidden; }
@media (max-width: 760px) { .lp-m .feedback-form-wrap { bottom: 0; } }

/* Main column */
.lp-m-main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.lp-m-intro-image { display: block; width: 100%; height: auto; border-radius: 18px; }
.lp-m-lead, .lp-m-lead p { margin: 0; font-size: 20px; line-height: 1.6; font-weight: 500; color: #141833; }
.lp-m-lead p + p { margin-top: 12px; }
.lp-m-section { display: flex; flex-direction: column; gap: 18px; }
.lp-m-h2 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; color: #141833; }
.lp-m-richtext { font-size: 17px; line-height: 1.6; }
.lp-m-richtext > :first-child { margin-top: 0; }
.lp-m-richtext > :last-child { margin-bottom: 0; }
.lp-m-richtext p { margin: 0 0 14px; }
.lp-m-richtext strong { color: #141833; }
.lp-m-richtext ul { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.lp-m-richtext ul li { position: relative; padding-left: 28px; }
.lp-m-richtext ul li::before { content: ''; position: absolute; left: 3px; top: 0.62em; width: 10px; height: 10px; border-radius: 3px; background: var(--lp-primary); }
.lp-m-richtext ul li > i:first-child { display: none; } /* legacy icon lists */

/* Highlightbox (overrides the classic rule from jobheld.css) */
.lp-m .lp-highlightbox { margin: 0 0 14px; padding: 22px 24px; border-radius: 16px; background: var(--lp-tint); border: 1px solid var(--lp-tint-line); font-size: 17px; line-height: 1.6; color: #141833; }
.lp-m .lp-highlightbox p { margin: 0; }
.lp-m .lp-highlightbox p + p { margin-top: 10px; }

/* Galleries */
.lp-m-gallery { display: grid; gap: 14px; }
.lp-m-gallery--cols-1 { grid-template-columns: 1fr; }
.lp-m-gallery--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-m-gallery--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 599px) { .lp-m-gallery--cols-2, .lp-m-gallery--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-m-gallery-item { display: block; border-radius: 14px; overflow: hidden; }
.lp-m-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-m-gallery--footer { display: flex; flex-wrap: wrap; }
.lp-m-gallery--footer .lp-m-gallery-item { flex: 1 1 280px; min-width: 0; aspect-ratio: 3 / 2; }
.lp-m-gallery--footer .lp-m-gallery-item:nth-child(-n+2) { flex-basis: 400px; }
/* From the 3rd image on: fixed thirds (gap 14px × 2), so a lone image in the
   last row doesn't grow to full width. The first two stay large. */
@media (min-width: 900px) { .lp-m-gallery--footer .lp-m-gallery-item:nth-child(n+3) { flex: 0 1 calc((100% - 28px) / 3); } }

/* CTA band */
.lp-m-cta { background: var(--lp-primary); }
.lp-m-cta-inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.lp-m-cta-text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 10px; color: var(--lp-on-primary); }
.lp-m-cta-title { margin: 0; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; color: var(--lp-on-primary); }
.lp-m-cta-text p { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.6; }
.lp-m .lp-m-btn--inverted { display: inline-block; padding: 16px 28px; background: #ffffff; color: var(--lp-primary); }
.lp-m .lp-m-btn--inverted:hover { background: var(--lp-tint-hover); color: var(--lp-primary); }

/* Footer galleries */
.lp-m-footer-gallery { display: flex; flex-direction: column; gap: 20px; padding-top: 56px; padding-bottom: 72px; }
.lp-m-footer-gallery + .lp-m-footer-gallery { padding-top: 0; }

/* Mobile */
@media (max-width: 599px) {
  .lp-m-wrap { padding-left: 20px; padding-right: 20px; }
  .lp-m-hero-inner { padding-top: 36px; padding-bottom: 32px; }
  .lp-m-body { gap: 36px; padding-top: 28px; padding-bottom: 48px; }
  .lp-m-aside { padding: 20px; }
  .lp-m-lead, .lp-m-lead p { font-size: 18px; }
  .lp-m-h2 { font-size: 23px; }
}

/* Mitarbeiterstimmen (lp_content_type = testimonials). Grid rows stretch, so
   cards in a row share one height; the person block sits at the bottom. */
.lp-m-testimonials {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .lp-m-testimonials--column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-m-testimonials--footer { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (min-width: 960px) {
  .lp-m-testimonials--footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lp-m-testimonial {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e0e4f2;
  border-radius: 18px;
}
.lp-m-testimonial-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  color: #141833;
}
.lp-m-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.lp-m-star { fill: #f5c451; }
.lp-m-star--off { fill: #e3e6ee; }
.lp-m-testimonial-text {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.6;
  color: #2a2f45;
}
.lp-m-testimonial-text > :first-child { margin-top: 0; }
.lp-m-testimonial-text > :last-child { margin-bottom: 0; }
.lp-m-testimonial-text p { margin: 0 0 10px; }
.lp-m-testimonial-text strong, .lp-m-testimonial-text b { color: #141833; }
.lp-m-testimonial-text ul, .lp-m-testimonial-text ol { margin: 0 0 10px; padding-left: 20px; }
.lp-m-testimonial-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}
.lp-m-testimonial-photo {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
}
.lp-m-testimonial-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #141833;
}
.lp-m-testimonial-role {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: #5a607a;
}
/* Footer testimonials sit on a light tint so the white cards stand out. */
.lp-m-footer-testimonials {
  max-width: none;
  background: var(--lp-tint);
}
.lp-m-footer-testimonials > * {
  max-width: 1072px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.lp-m-footer-gallery + .lp-m-footer-testimonials,
.lp-m-footer-testimonials + .lp-m-footer-gallery { padding-top: 56px; }

/* Long testimonial texts: clamped to 200px by the inline script in
   landingpage1-modern.php, with a fade and a "weiterlesen" toggle. */
.lp-m-testimonial-text.is-clamped {
  position: relative;
  max-height: 200px;
  overflow: hidden;
  margin-bottom: 8px;
}
.lp-m-testimonial-text.is-clamped::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(rgba(255, 255, 255, 0), #ffffff);
  pointer-events: none;
}
.lp-m .lp-m-readmore {
  align-self: flex-end;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-primary);
  cursor: pointer;
}
.lp-m .lp-m-readmore:hover { text-decoration: underline; }
.lp-m .lp-m-readmore:focus-visible { outline: 2px solid #141833; outline-offset: 2px; }

/* Option "Kleinere Schrift" (testimonials_small): 15px, clamp at 180px. */
.lp-m-testimonials--small .lp-m-testimonial-text { font-size: 15px; }
.lp-m-testimonials--small .lp-m-testimonial-text.is-clamped { max-height: 180px; }
