/* firmen-mentor.de – statisches Layout (Nachbau des Elementor-Designs) */

@font-face {
  font-family: 'Pridi';
  src: url('../fonts/pridi-500.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pridi';
  src: url('../fonts/pridi-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans Local';
  src: url('../fonts/open-sans-v29-latin-regular.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #8A003B;
  --secondary: #404B62;
  --text: #4E4E4E;
  --accent: #344481;
  --dark: #282F3D;
  --link: #CC3366;
  --font-text: 'Pridi', Georgia, serif;
  --font-head: 'Open Sans Local', Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0.8px;
  word-spacing: 1px;
  color: var(--text);
  background-color: #111013;
  -webkit-font-smoothing: antialiased;
}

/* Startseite: Portrait als feststehender Seitenhintergrund */
body.page-home {
  background-image: url('../img/hero-rainer-helling.jpg');
  background-image: image-set(url('../img/hero-rainer-helling.webp') type('image/webp'), url('../img/hero-rainer-helling.jpg') type('image/jpeg'));
  background-position: top left;
  background-repeat: no-repeat;
}
/* Preise und Datenschutz: Tastatur-Foto als Hintergrund */
body.page-preise,
body.page-datenschutz {
  background-image: url('../img/tastatur.jpg');
  background-image: image-set(url('../img/tastatur.webp') type('image/webp'), url('../img/tastatur.jpg') type('image/jpeg'));
  background-position: top left;
  background-repeat: no-repeat;
}
body.page-datenschutz { background-size: cover; }
body.page-impressum { background-color: #DFDFDF; }

@media (min-width: 1025px) {
  body.page-home,
  body.page-preise,
  body.page-datenschutz { background-attachment: fixed; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-text);
  font-weight: 500;
  line-height: 1.2;
  margin: 8px 0 16px;
}
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
h5 { font-size: 20px; }
p { margin: 0 0 14.4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: #fff; color: #000; padding: 8px 16px; font-size: 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Menü (Hamburger oben links, feststehend) ---------- */
.site-nav {
  position: fixed;
  top: 41px;
  left: 33px;
  z-index: 100;
}
.menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 33px; height: 33px; padding: 5.5px;
  border: 0; border-radius: 3px;
  background: #030202; color: #fff; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; fill: #fff; }
.menu-toggle .icon-close { display: none; }
.site-nav.is-open .icon-open { display: none; }
.site-nav.is-open .icon-close { display: block; }

.site-menu {
  display: none;
  list-style: none;
  margin: 10px 0 0; padding: 0;
  min-width: 121px;
  box-shadow: 0 0 10px 0 #9F0D0D;
}
.site-nav.is-open .site-menu { display: block; }
.site-menu a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-text);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 1.1px;
  color: #fff;
  background: #3F444B;
}
.site-menu a:hover, .site-menu a:focus-visible,
.site-menu a[aria-current="page"] {
  background: var(--accent);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 135px 0 125px;
  min-height: 910px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-content {
  width: min(571px, 50%);
  margin-left: 50%;
  padding-left: 11px;
  text-align: center;
}
.hero-logo { margin: 0 auto; width: 300px; }
.hero-tagline {
  margin: 30px auto 44px;
  max-width: 560px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.3px;
  color: var(--secondary);
}
.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1;
}
.button:hover, .button:focus-visible { background: var(--secondary); text-decoration: none; }
.hero-name {
  margin: 40px 0 0;
  font-size: 42px;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  letter-spacing: 1.1px;
  color: #fff;
  text-shadow: 2px 2px 11px rgba(0, 0, 0, 0.62);
}
.hero-arrow {
  display: block;
  width: 83px; height: 83px;
  margin: 60px auto 0;
  color: var(--primary);
}
.hero-arrow svg { width: 83px; height: 83px; fill: currentColor; }

/* ---------- Leistungs-Zeilen (Bild + Text) ---------- */
.feature {
  display: flex;
  align-items: flex-start;
  background-image: linear-gradient(180deg, var(--secondary) 0%, var(--dark) 100%);
  color: #fff;
  scroll-margin-top: 0;
}
.feature-image { flex: 0 0 40%; }
picture { display: block; }
.feature-image img { width: 100%; }
.feature-text { flex: 0 0 60%; padding: 60px; }
.feature--reverse .feature-image { order: 2; background: var(--secondary); }
.feature-text h3,
.feature-text h5 { color: #fff; }
.feature-text h5 { font-style: italic; }
.feature-text p { color: #fff; }

/* ---------- Beratung auf Augenhöhe ---------- */
.approach {
  background-color: rgba(83, 103, 168, 0.91);
  color: #fff;
  padding: 50px 10px 30px;
}
.approach h1,
.approach h2 {
  margin: 0 0 30px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1.1px;
}
.approach-intro {
  max-width: 1140px;
  margin: 0 auto 40px;
  text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 0;
  max-width: 1120px;
  margin: 0 auto;
}
.card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 10px;
  background-color: rgba(92, 147, 233, 0.18);
}
.card:nth-child(2) { background-color: rgba(92, 147, 233, 0.34); }
.card:nth-child(3) { background-color: rgba(92, 147, 233, 0.47); }
.card:nth-child(6) { background-color: rgba(92, 147, 233, 0.29); }
.card-icon { flex: 0 0 10%; text-align: center; }
.card-icon svg { width: 50px; height: 50px; fill: var(--accent); }
.card-icon-glyph {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.card-body { flex: 0 1 75.8%; }
.card h3 { margin: 0; font-size: 22px; line-height: 1.5; color: #fff; }
.card p { margin: 0 0 14.4px; }

/* ---------- Preise ---------- */
.approach--prices {
  margin-top: 269px;
  background-color: rgba(86, 83, 168, 0.91);
}
.approach--prices .card h3 { font-size: 28px; line-height: 1.2; margin: 8px 0 16px; }

/* ---------- Seitenkopf (Datenschutz) ---------- */
.page-intro {
  padding: 390px 10px 20px;
  text-align: center;
}
.page-intro-logo { width: 300px; margin: 0 auto; }
.page-intro-tagline {
  margin: 20px 0;
  color: var(--secondary);
}
.page-intro-tagline,
.page-intro-title {
  text-shadow: 0 0 6px #fff, 0 0 14px #fff, 0 0 24px #fff;
}
.page-intro-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1.1px;
  color: var(--secondary);
}

/* ---------- Rechtstexte (Datenschutz, Impressum) ---------- */
.legal { padding: 20px 10px 40px; }
.legal--white { background: #fff; }
.legal-inner { max-width: 1140px; margin: 0 auto; }
.legal h1 { font-size: 32px; margin-top: 40px; }
.legal h3 { font-size: 24px; margin-top: 32px; }
.legal h4 { font-size: 24px; }
.legal p { overflow-wrap: break-word; }
.legal ul { margin: 0 0 14.4px; padding-left: 1.4em; }
.legal-lead { font-weight: 700; }
.legal-center { text-align: center; padding: 40px 0; }
.legal-center .button { margin: 6px 4px; }
.legal hr { border: 0; border-top: 1px solid #000; margin: 15px 0; }
.imprint-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 20px;
}
.imprint-head img { width: 300px; margin: 0 auto; }

/* ---------- Kontakt ---------- */
.contact {
  max-width: 1140px;
  margin: 0 auto;
  padding: 363px 10px 188px;
}
.contact-box {
  width: 440px;
  margin-left: auto;
  margin-right: 41px;
  text-align: center;
}
.contact-title { font-size: 40px; margin: 8px 0; }
.contact-line { font-size: 32px; font-weight: 500; line-height: 1.2; margin: 8px 0 16px; }
.contact-phone { font-size: 28px; font-weight: 500; line-height: 1.2; margin: 8px 0 16px; }
.contact-logo { width: 300px; margin: 40px auto 0; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: rgba(49, 49, 49, 0.83);
  padding: 20px 10px 30px;
  text-align: center;
  color: #999;
}
.footer-links {
  margin: 22px 0;
  font-family: monospace, monospace;
  font-size: 22px;
}
.footer-copy { font-size: 16px; margin: 0; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .feature-text { padding: 40px; }
  .contact { padding-top: 200px; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 767px) {
  body { font-size: 18px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 24px; }

  body.page-home { background-position: 9% top; background-size: auto 812px; }

  .site-nav { top: 20px; left: 20px; }

  .hero { min-height: 0; padding: 340px 16px 40px; }
  .hero-content { width: 100%; margin-left: 0; padding: 20px 10px; background: rgba(255, 255, 255, 0.82); border-radius: 4px; }
  .hero-logo { width: 200px; }
  .hero-tagline { font-size: 15px; }
  .hero-name { font-size: 32px; margin-top: 24px; }
  .hero-arrow { margin-top: 32px; }

  .feature, .feature--reverse { flex-direction: column; }
  .feature-image, .feature-text { flex-basis: auto; width: 100%; }
  .feature--reverse .feature-image { order: 0; }
  .feature-text { padding: 30px 20px; }

  .approach { padding: 40px 16px 20px; }
  .approach h2 { font-size: 26px; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card-icon svg { width: 36px; height: 36px; }
  .card-icon-glyph { font-size: 36px; }

  .approach--prices { margin-top: 160px; }
  .approach--prices .card h3 { font-size: 22px; }

  .page-intro { padding-top: 120px; }
  .page-intro-logo { width: 200px; }
  .page-intro-tagline { font-size: 15px; }
  .page-intro-title { font-size: 26px; }

  .legal { padding: 16px 16px 32px; }
  .legal h1 { font-size: 26px; }
  .legal h3, .legal h4 { font-size: 20px; }
  .imprint-head { grid-template-columns: 1fr; }
  .imprint-head img { width: 200px; }

  .contact { padding: 60px 16px; }
  .contact-box {
    width: 100%; margin: 0;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
  }
  .contact-title { font-size: 32px; }
  .contact-line { font-size: 24px; }
  .contact-phone { font-size: 22px; }
  .contact-logo { width: 200px; }

  .footer-links { font-size: 15px; }
  .footer-copy { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
