/* =============================================================
   Heckelt Engineering — styles.css (v4: weiß, reduziert, typografisch)
   ============================================================= */

/* ----------- Fonts (self-hosted) ----------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/poppins-300.woff2') format('woff2'), url('fonts/poppins-300.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/poppins-400.woff2') format('woff2'), url('fonts/poppins-400.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/poppins-400-italic.woff2') format('woff2'), url('fonts/poppins-400-italic.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/poppins-500.woff2') format('woff2'), url('fonts/poppins-500.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/poppins-700.woff2') format('woff2'), url('fonts/poppins-700.woff') format('woff'); }

:root {
  --blue: #005EB8;          /* Corporate Blue (Visitenkarten) — einziger Akzent */
  --ink: #101418;           /* Überschriften */
  --text: #2A2F35;          /* Fließtext */
  --muted: #5C6370;         /* Nebentext, Labels — 4,8:1 auf dem Hero-Grau, 6:1 auf Weiß */
  --line: #E3E6EA;          /* Haarlinien */
  --bg: #FFFFFF;
  --white: #FFFFFF;
  /* Kompatibilität für eskalation.html */
  --navy: #005EB8;
  --dark: #101418;
  --body: #2A2F35;
  --bg-alt: #F6F7F9;
  --bg-dark: #101418;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text); line-height: 1.65; background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ----------- Header / Nav ----------- */
header.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 22px 0;
}
header.site-header.scrolled, header.site-header.nav-open {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; position: relative; }
.wordmark { display: inline-flex; align-items: center; color: var(--ink); }
.wordmark-name { font-size: 18px; line-height: 1; letter-spacing: -0.005em; }
.wordmark-name-bold { font-weight: 700; }
.wordmark-name-light { font-weight: 400; }
.wordmark-dot { display: inline-block; width: 0.18em; height: 0.18em; border-radius: 50%; background: var(--blue); margin-left: 0.2em; vertical-align: baseline; }

nav.main-nav { display: flex; align-items: center; gap: 32px; }
nav.main-nav a { font-size: 14px; font-weight: 500; color: var(--ink); transition: color 0.2s ease; }
nav.main-nav a:hover { color: var(--blue); }
.nav-cta { color: var(--blue) !important; }
.nav-cta:hover { color: #004A94 !important; }
.nav-cta::after { content: " →"; display: inline-block; transition: transform 0.2s ease; }
.nav-cta:hover::after { transform: translateX(3px); }
.lang-toggle { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; border-left: 1px solid var(--line); padding-left: 24px; margin-left: 4px; }
.lang-toggle a, .lang-toggle .lang-active { padding: 4px 4px; font-size: 13px; color: var(--muted); }
.lang-toggle .lang-active { color: var(--ink); font-weight: 700; }
.lang-toggle .sep { color: var(--line); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin: -10px -10px -10px 0;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease; }
header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------- Typografie ----------- */
h1 {
  font-size: clamp(36px, 4vw, 50px); font-weight: 700; line-height: 1.08;
  color: var(--ink); letter-spacing: -0.025em; margin-bottom: 28px;
  hyphens: manual; overflow-wrap: break-word; text-wrap: balance;
}
h2 {
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 56px; text-wrap: balance;
}
h3 { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 10px; }
.section-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--blue); margin-bottom: 20px; }

/* Textlinks mit Pfeil — der Standard-Handlungsaufruf dieser Seite */
.text-link { display: inline-block; font-size: 15px; font-weight: 500; color: var(--blue); transition: color 0.2s ease; }
.text-link:hover { color: #004A94; }
.text-link span { display: inline-block; transition: transform 0.2s ease; }
.text-link:hover span { transform: translateX(4px); }

/* Einziger Button: beim Kontakt */
.btn {
  display: inline-block; padding: 15px 28px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--blue); color: var(--blue); background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--blue); color: var(--white); }
.btn-primary, .btn-ghost { }

/* ----------- Hero ----------- */
.hero {
  background: #E3E5E8;
  min-height: 0;
  padding: 168px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.hero-eyebrow { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 28px; }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--text); line-height: 1.6; margin-bottom: 40px; max-width: 560px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.hero-photo { width: 100%; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1600 / 1113; display: block; }

/* ----------- Abschnitte ----------- */
section { padding: 128px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; }

/* Praxisfälle: zwei Spalten Text, keine Karten */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
.case-card { padding-top: 24px; border-top: 1px solid var(--line); }
.case-card h3 { font-size: 22px; margin-bottom: 14px; }
.case-card p { font-size: 16px; line-height: 1.65; text-wrap: pretty; }

/* Über mich */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px; align-items: start; }
.about-grid h2 { margin-bottom: 28px; }
.about-text p { font-size: 17px; line-height: 1.7; margin-bottom: 20px; text-wrap: pretty; }
.about-text p:last-child { margin-bottom: 0; }
.about-text .about-motivation { font-style: italic; }
.about-facts > div { padding: 18px 0; border-top: 1px solid var(--line); }
.about-facts > div:last-child { border-bottom: 1px solid var(--line); }
.about-facts dt { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.about-facts dd { font-size: 15px; color: var(--ink); line-height: 1.7; }
.about-pdf { margin-top: 22px; font-size: 15px; }
.about-pdf a { color: var(--blue); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.about-pdf a:hover { color: #004A94; border-bottom-color: currentColor; }
.about-pdf span { display: inline-block; transition: transform 0.2s ease; }
.about-pdf a:hover span { transform: translateX(3px); }

/* Profil / USP: vier Absätze im Raster */
.usp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
.usp-item { padding-top: 24px; border-top: 1px solid var(--line); }
.usp-item p { font-size: 16px; line-height: 1.65; text-wrap: pretty; }

/* Leistungen: Liste mit Haarlinien, keine Kacheln */
.services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.service-card { padding: 28px 0; border-top: 1px solid var(--line); }
.service-card p { font-size: 16px; line-height: 1.65; text-wrap: pretty; }
.service-link { margin-top: 14px; }

/* Erfahrung: Zahlen als ruhige Zeile */

/* Kontakt: weiß, zwei Spalten */
.contact { background: #E3E5E8; color: var(--text); border-top: 0; padding-bottom: 72px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px; align-items: start; }
.contact h2 { margin-bottom: 24px; }
.contact-sub { font-size: 17px; color: var(--text); line-height: 1.65; margin-bottom: 36px; max-width: 520px; text-wrap: pretty; }
.contact-items { display: grid; grid-template-columns: 1fr; }
.contact-item { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 0; border-top: 1px solid #CFD3D8; }
.contact-item:last-child { border-bottom: 1px solid #CFD3D8; }
.contact-label { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-size: 17px; color: var(--ink); font-weight: 500; text-align: right; }
.contact-value a:hover { color: var(--blue); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer a:hover { color: var(--ink); }
.footer-wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.footer-wordmark .wordmark-name { font-size: 14px; }
.footer-meta { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }

/* ----------- Legal Pages ----------- */
.legal-page { padding: 160px 0 96px; }
.legal-container { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.legal-page .back-link { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.legal-page .back-link:hover { color: var(--blue); }
.legal-page h1 { font-size: 36px; margin-bottom: 8px; }
.legal-page .lead { font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.legal-page h2 { font-size: 18px; margin: 40px 0 12px; }
.legal-page p { font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.legal-page a { color: var(--blue); }
.legal-page a:hover { text-decoration: underline; }
.legal-page em { color: var(--muted); font-style: italic; }

/* ----------- Responsive ----------- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .hero { padding: 132px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 520px; }
  .cases-grid, .about-grid, .usp-grid, .services-grid, .contact-grid { grid-template-columns: 1fr; }
  .cases-grid, .usp-grid { gap: 40px; }
  .about-grid, .contact-grid { gap: 40px; }
  section { padding: 88px 0; }
  h2 { margin-bottom: 40px; }
  nav.main-nav { gap: 20px; }
  nav.main-nav a { font-size: 13px; }
  .lang-toggle { padding-left: 14px; margin-left: 0; }
}
@media (max-width: 640px) {
  .contact-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .contact-value { text-align: left; }
  header.site-header { padding: 14px 0; }
  .nav-toggle { display: flex; }
  nav.main-nav {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 14px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(16,20,24,0.06); padding: 8px 0 12px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav .nav-link { display: block; padding: 14px 24px; font-size: 15px; border-bottom: 1px solid var(--bg-alt); }
  nav.main-nav .nav-cta { display: block; padding: 14px 24px; font-size: 15px; }
  .lang-toggle { border-left: 0; padding: 12px 20px 0; margin: 0; }
}
@media (max-width: 480px) {
  h1 { font-size: 34px; }
  .hero { padding: 112px 0 56px; }
  .hero-cta { flex-direction: column; gap: 14px; }
  section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .text-link span, .nav-toggle-bar, .btn { transition: none; }
}

/* Landingpage eskalation.html: Kompatibilität */
.lp-hero { background: var(--bg-dark); }
