/* Erhardt Systems — landing page styles (ported from the original HTML). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f4f4f7;
  color: #14141a;
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
input, button { font-family: inherit; }
::placeholder { color: #8a8a96; }

@keyframes erh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.78); }
}

.page { position: relative; overflow-x: clip; }

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 15px clamp(16px, 4vw, 40px);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #14141a; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: #463cc9;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 6px 18px rgba(70, 60, 201, .28);
}
.brand-name {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 19px;
  line-height: .84; letter-spacing: -.01em;
}
.dot4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; width: 16px; height: 16px; }
.dot4 > span { background: #fff; border-radius: 50%; }
.dot4--sm { gap: 2.5px; width: 13px; height: 13px; }
.dot4--md { gap: 3px; width: 14px; height: 14px; }

.nav-pill {
  display: flex; align-items: center; gap: 4px; background: #fff;
  border: 1px solid #e7e7ef; box-shadow: 0 10px 34px rgba(20, 20, 50, .07);
  border-radius: 999px; padding: 6px 7px;
}
.nav-link {
  text-decoration: none; color: #23232c; font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; letter-spacing: .01em; padding: 9px 15px; border-radius: 999px;
  transition: background 150ms ease;
}
.nav-link:hover { background: #f1f1f6; }

.cta {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: #14141a; color: #fff; border-radius: 999px;
  padding: 7px 8px 7px 20px; font-weight: 600; font-size: 14px;
  transition: background 150ms ease;
}
.cta:hover { background: #000; }
.cta-mark {
  width: 30px; height: 30px; border-radius: 8px; background: #463cc9;
  display: grid; place-items: center; flex: none;
}
.cta--lg { padding: 9px 10px 9px 24px; font-size: 16px; }
.cta--lg .cta-mark { width: 34px; height: 34px; border-radius: 9px; }

/* ---- Hero ---- */
.hero-section {
  position: relative; scroll-margin-top: 100px;
  padding: 128px clamp(16px, 5vw, 40px) clamp(56px, 8vw, 104px);
}
.cluster-a { position: absolute; top: 128px; left: clamp(8px, 4vw, 56px); z-index: 0; pointer-events: none; }
.cluster-c { position: absolute; bottom: 36px; right: clamp(8px, 4vw, 72px); z-index: 0; pointer-events: none; }
.hero {
  position: relative; z-index: 1; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.08fr auto .92fr;
  align-items: center; gap: clamp(24px, 4vw, 56px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: #463cc9; margin: 0 0 20px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #463cc9; }
.eyebrow--light { color: #a59cff; }
.eyebrow--light .eyebrow-dot { background: #a59cff; }
.hero-title {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: clamp(40px, 6vw, 84px);
  line-height: .97; letter-spacing: -.025em; margin: 0; color: #14141a; text-wrap: balance;
}
.glyph { position: relative; width: clamp(238px, 29vw, 420px); aspect-ratio: 1; margin: 0 auto; }
.glyph-grid {
  display: grid; grid-template-columns: repeat(19, 1fr); grid-template-rows: repeat(19, 1fr);
  width: 100%; height: 100%;
}
.glyph-cell { display: flex; align-items: center; justify-content: center; }
.hero-aside { max-width: 330px; justify-self: end; }
.hero-lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: #43434f; margin: 0 0 28px; }

/* ---- Generic section scaffolding ---- */
.container { max-width: 1180px; margin: 0 auto; }
.section { scroll-margin-top: 90px; padding: clamp(56px, 9vw, 118px) clamp(16px, 5vw, 40px); }
.section--flush { scroll-margin-top: 90px; padding: 0 clamp(16px, 5vw, 40px) clamp(56px, 9vw, 118px); }
.section--kontakt { scroll-margin-top: 90px; padding: 0 clamp(16px, 5vw, 40px) clamp(48px, 7vw, 96px); }

.section-head { max-width: 680px; margin: 0 0 clamp(40px, 5vw, 64px); }
.section-title {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.02; letter-spacing: -.02em; margin: 0; color: #14141a; text-wrap: balance;
}

/* ---- Leistungen ---- */
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.svc-num {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #463cc9;
  border-top: 1.5px solid #14141a; padding-top: 18px; margin-bottom: 22px;
}
.svc-title {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 24px;
  letter-spacing: -.01em; margin: 0 0 12px; color: #14141a;
}
.svc-text { font-size: 17px; line-height: 1.6; color: #4a4a56; margin: 0; }

/* ---- Ablauf panel ---- */
.panel {
  max-width: 1180px; margin: 0 auto; background: #fff; border: 1px solid #ececf2;
  border-radius: 26px; padding: clamp(32px, 5vw, 64px);
}
.panel-head { margin: 0 0 clamp(34px, 4vw, 52px); }
.panel-title {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.04; letter-spacing: -.02em; margin: 0; color: #14141a;
}
.step-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.step { border-left: 1px solid #e6e6ee; padding-left: 26px; }
.step-num {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 46px; line-height: 1;
  color: #463cc9; margin-bottom: 18px;
}
.step-text { font-size: 18px; line-height: 1.5; color: #23232c; margin: 0; font-weight: 500; }

/* ---- Über mich ---- */
.about {
  max-width: 1180px; margin: 0 auto; display: grid;
  grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.about-photo {
  position: relative; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden;
  background: repeating-linear-gradient(135deg, #ececf2 0 13px, #f5f5f9 13px 26px);
  border: 1px solid #e6e6ee;
}
.about-photo-tag {
  position: absolute; left: 16px; bottom: 16px; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .04em; color: #5a5a66; background: #fff;
  border: 1px solid #e6e6ee; border-radius: 999px; padding: 7px 13px;
}
.about-title {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.04; letter-spacing: -.02em; margin: 0 0 22px; color: #14141a; text-wrap: balance;
}
.about-text { font-size: 18px; line-height: 1.6; color: #43434f; margin: 0 0 16px; max-width: 560px; }
.about-text:last-child { margin-bottom: 0; }

/* ---- Kontakt ---- */
.contact {
  position: relative; overflow: hidden; max-width: 1180px; margin: 0 auto;
  background: #121218; border-radius: 30px; padding: clamp(34px, 5vw, 76px); color: #fff;
}
.cluster-b { position: absolute; top: -10px; right: -10px; opacity: .5; pointer-events: none; }
.contact-inner { position: relative; z-index: 1; max-width: 640px; }
.contact-title {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.02; letter-spacing: -.02em; margin: 0 0 18px; color: #fff; text-wrap: balance;
}
.contact-lead { font-size: 18px; line-height: 1.6; color: #b9b9c4; margin: 0 0 32px; max-width: 520px; }
.contact-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 540px; }
.contact-input {
  flex: 1 1 240px; min-width: 0; background: #1d1d26; border: 1px solid #30303d; color: #fff;
  border-radius: 999px; padding: 16px 22px; font-size: 16px;
}
.contact-input:focus { outline: none; border-color: #463cc9; }
.contact-submit {
  flex: 0 0 auto; background: #463cc9; color: #fff; border: none; border-radius: 999px;
  padding: 16px 28px; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background 150ms ease;
}
.contact-submit:hover { background: #3a31ab; }
.contact-error { margin: 14px 0 0; font-size: 15px; color: #ff9d8f; }
.contact-success {
  display: flex; align-items: center; gap: 12px; margin-top: 24px;
  font-size: 17px; color: #d7d4ff;
}
.contact-success-dot { width: 9px; height: 9px; border-radius: 50%; background: #a59cff; flex: none; }

/* ---- Footer ---- */
.site-footer { padding: clamp(36px, 5vw, 72px) clamp(16px, 5vw, 40px); }
.footer-inner {
  max-width: 1180px; margin: 0 auto; border-top: 1px solid #e3e3ea; padding-top: 30px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.footer-brand {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 16px;
  letter-spacing: -.01em; color: #14141a;
}
.footer-links { display: flex; gap: 26px; }
.footer-link { text-decoration: none; color: #5a5a66; font-size: 14px; transition: color 150ms ease; }
.footer-link:hover { color: #14141a; }
.footer-copy { font-size: 13px; color: #8a8a96; font-family: 'JetBrains Mono', monospace; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; justify-items: start; gap: 14px; }
  .hero-aside { justify-self: start; max-width: 560px; }
  .glyph { margin: 6px 0 10px; }
}
@media (max-width: 760px) {
  .nav-pill { display: none; }
  .about { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: 1px solid #e6e6ee; padding: 24px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
