/* =========================================================
   e@i consulting GmbH — Stylesheet
   Design-System: "Der Knotenpunkt"
   Das @-Zeichen ist die Brücke zwischen zwei Welten —
   IT (petrol/teal) und Erneuerbare Energien (solar/amber).
   ========================================================= */

:root {
  /* Palette */
  --paper:        #f6f7f4;
  --paper-2:      #eef0ea;
  --ink:          #15181b;
  --slate:        #59626a;
  --line:         #dde0d8;

  --circuit:      #0c6e63;   /* IT-Welt  */
  --circuit-soft: #e2efec;
  --solar:        #d98a12;   /* Energie-Welt */
  --solar-soft:   #f6ecd8;

  /* Wortmarke e@i */
  --logo-e:       #2563eb;   /* e — blau */
  --logo-i:       #e5a50a;   /* i — gelb */

  /* Typografie */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "IBM Plex Sans", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Maße */
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* ---- mono eyebrow / node-label ------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--slate);
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}
.eyebrow.it::before  { background: var(--circuit); }
.eyebrow.energy::before { background: var(--solar); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.01em;
  text-decoration: none;
  display: inline-flex; align-items: baseline;
}
.brand .wm-e { color: var(--logo-e); }
.brand .wm-i { color: var(--logo-i); }
.brand .at {
  background: linear-gradient(120deg, var(--logo-e), var(--logo-i));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  padding: 0 .02em .14em;
  margin-bottom: -.14em;
}
.brand .co {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--slate);
  margin-left: .6rem;
  align-self: center;
  letter-spacing: .02em;
}
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a {
  font-size: .95rem; text-decoration: none; color: var(--slate);
  transition: color .18s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.cta {
  color: var(--paper); background: var(--ink);
  padding: .5rem .95rem; border-radius: var(--radius);
}
.nav a.cta:hover { color: var(--paper); background: var(--circuit); }
.nav-toggle { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}

/* Zweispaltig: Text oben links, Logo in die rechte Ecke */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.hero-copy { grid-column: 1; max-width: 46ch; padding-top: .4rem; }
.hero-logo { grid-column: 2; }

.hero-mark {
  grid-column: 2;
  justify-self: end;
  align-self: start;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  font-size: clamp(4rem, 13vw, 10.5rem);
  margin: 0;
  padding: .06em .04em .12em;   /* etwas Luft, damit @ und Ober-/Unterlängen nie abgeschnitten werden */
  white-space: nowrap;
  text-align: right;
}
.hero-mark .wm-e { color: var(--logo-e); }
.hero-mark .wm-i { color: var(--logo-i); }
.hero-mark .at {
  background: linear-gradient(120deg, var(--logo-e) 20%, var(--logo-i) 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  line-height: 1;
  padding-bottom: .3em;
  margin-bottom: -.3em;
}
.hero-lead {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.4;
  margin: 0;
  font-weight: 400;
}
.hero-lead strong { font-weight: 600; }
.hero-lead p { margin: 0; }
.hl-title { margin-bottom: .4em !important; }
.hl-list {
  list-style: none;
  margin: .2em 0 !important;
  padding: 0;
}
.hl-list li {
  position: relative;
  padding-left: 1.35em;
}
.hl-list li::before {
  content: "•";
  position: absolute;
  left: .1em;
  top: -.02em;
  font-size: 1.15em;
  line-height: 1.35;
}
.hl-list li.it::before     { color: var(--circuit); }
.hl-list li.energy::before { color: var(--solar); }
.hl-outro { margin-top: .3em !important; white-space: nowrap; }

/* zwei-welten hinweis unter dem hero */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.pillar {
  background: var(--paper);
  padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: .35rem;
}
.pillar .tag {
  font-family: var(--mono); font-size: .8rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.pillar .tag::before { content:""; width: 9px; height: 9px; border-radius: 2px; }
.pillar.it .tag::before { background: var(--circuit); }
.pillar.energy .tag::before { background: var(--solar); }
.pillar h3 { font-family: var(--display); font-size: 1.35rem; margin: .1rem 0 0; font-weight: 600; }
.pillar p { margin: 0; color: var(--slate); font-size: .98rem; }

/* =========================================================
   Section wrapper
   ========================================================= */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0;
}
.section-head p { color: var(--slate); font-size: 1.08rem; margin: 1rem 0 0; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* =========================================================
   Leistungen — zwei Domänen
   ========================================================= */
.domains { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }

.domain { position: relative; }
.domain-title {
  font-family: var(--display);
  font-size: 1.5rem; font-weight: 600;
  display: flex; align-items: center; gap: .7rem;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}
.domain.it .domain-title    { border-color: var(--circuit); }
.domain.energy .domain-title { border-color: var(--solar); }
.domain-title .no {
  font-family: var(--mono); font-size: .95rem; font-weight: 500;
  color: var(--slate);
}

.service {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.1rem;
  align-items: start;
  transition: transform .2s ease;
}
.service:first-of-type { border-top: 0; }
.service:hover { transform: translateX(4px); }
.service .node {
  width: 12px; height: 12px; margin-top: .45rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  flex: none;
  transition: background .2s ease, border-color .2s ease;
}
.domain.it .service:hover .node    { background: var(--circuit); border-color: var(--circuit); }
.domain.energy .service:hover .node { background: var(--solar); border-color: var(--solar); }
.service h4 { margin: 0; font-family: var(--display); font-size: 1.18rem; font-weight: 600; }
.service p  { margin: .35rem 0 0; color: var(--slate); font-size: .97rem; grid-column: 2; }

/* =========================================================
   Ansatz / Warum
   ========================================================= */
.approach { background: var(--logo-e); color: #fff; }
.approach .section-head { max-width: none; }
.approach .section-head h2 { color: #fff; white-space: nowrap; }
.approach .eyebrow { color: #cdddff; }
.approach .eyebrow::before { background: #fff; }
.approach-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 1rem;
}
.approach-item h4 {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  margin: 0 0 .5rem;
}
.approach-item p { margin: 0; color: #dbe6ff; font-size: .98rem; }
.approach-item .mk { font-family: var(--mono); color: var(--logo-i); font-size: .85rem; }

/* =========================================================
   Kontakt
   ========================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-grid h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.05;
  margin: 0; letter-spacing: -.02em;
}
.contact-lead { color: var(--slate); margin: 1rem 0 0; font-size: 1.08rem; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; background: var(--paper);
}
.contact-row { padding: .9rem 0; border-top: 1px solid var(--line); }
.contact-row:first-child { border-top: 0; padding-top: 0; }
.contact-row .k { font-family: var(--mono); font-size: .78rem; color: var(--slate); }
.contact-row .v { display: block; margin-top: .25rem; font-size: 1.05rem; }
.contact-row .v a { text-decoration: none; }
.contact-row .v a:hover { color: var(--circuit); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  font-size: .92rem;
}
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.site-footer .brand { font-size: 1.15rem; }
.site-footer nav { display: flex; gap: 1.4rem; }
.site-footer a { color: var(--slate); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .fine { color: var(--slate); width: 100%; margin-top: .5rem; }

/* =========================================================
   Impressum-Seite
   ========================================================= */
.legal { padding-top: clamp(2.5rem, 6vw, 4rem); min-height: 60vh; }
.legal h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0;
  letter-spacing: -.02em;
}
.legal-sub { color: var(--slate); margin: .6rem 0 2.5rem; }
.legal-block { max-width: 640px; margin-bottom: 2.2rem; }
.legal-block h2 {
  font-family: var(--mono); font-size: .82rem; font-weight: 500;
  color: var(--slate); letter-spacing: .03em;
  text-transform: none;
  margin: 0 0 .5rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: .5rem;
}
.legal-block h2::before {
  content:""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--circuit);
}
.legal-block p { margin: .1rem 0; }
.legal-block a { color: var(--circuit); }
.legal-note { font-size: .92rem; color: var(--slate); }
#legal-error {
  border: 1px solid var(--solar); background: var(--solar-soft);
  padding: 1rem 1.2rem; border-radius: var(--radius); max-width: 640px;
}

/* =========================================================
   Reveal-Animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 820px) {
  .hl-outro { white-space: normal; }
  .approach .section-head h2 { font-size: clamp(1.4rem, 6.4vw, 2.4rem); }
  .hero-grid { grid-template-columns: 1fr; gap: clamp(1.5rem, 6vw, 2.5rem); }
  .hero-copy { grid-column: 1; }
  .hero-mark { grid-column: 1; justify-self: start; text-align: left; font-size: clamp(3.5rem, 22vw, 7rem); }
  .pillars { grid-template-columns: 1fr; }
  .domains { grid-template-columns: 1fr; gap: 2.5rem; }
  .approach-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .nav.open { display: flex; }
  .nav a { padding: .85rem var(--gutter); }
  .nav a.cta { background: none; color: var(--circuit); }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 4px;
    background: none; border: 0; cursor: pointer; padding: .4rem;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service, .node { transition: none; }
}

/* Fokus-Sichtbarkeit */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--circuit); outline-offset: 3px; border-radius: 2px;
}
