/* =============================================
   Daniel Johle — Kein Bild. Nur Typografie.
   Technisch · Ruhig · Kontrolliert
   ============================================= */

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

:root {
  /* Farbsystem — dunkles Blaugrau, Ingenieur- / Planungsbüro */
  --dk:       #192233;   /* primäre dunkle Fläche */
  --dk-2:     #1f2c40;   /* sekundäre dunkle Fläche */
  --dk-3:     #253449;   /* tertiäre dunkle Fläche / hover */
  --lt:       #f3f5f7;   /* primäre helle Fläche */
  --lt-2:     #e8edf1;   /* sekundäre helle Fläche */
  --lt-3:     #d4dae1;   /* Linien / Rules auf hell */

  /* Text */
  --tx-d:     #c8d2dc;   /* Text auf dunkel */
  --mu-d:     #5c6e82;   /* Gedämpft auf dunkel */
  --tx-l:     #192233;   /* Text auf hell */
  --mu-l:     #526070;   /* Gedämpft auf hell */

  /* Einzige Akzentfarbe */
  --ac:       #2a7d8f;   /* Petrol — technisch, ruhig, präzise */

  --font-h:   'Barlow', sans-serif;
  --font-b:   'Source Sans 3', sans-serif;
  --max:      1080px;
  --pad:      48px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dk);
  color: var(--tx-d);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ac); text-decoration: none; transition: opacity 0.18s; }
a:hover { opacity: 0.75; }
strong { font-weight: 700; color: inherit; }
img { display: block; max-width: 100%; }

.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}


/* ── SECTION BACKGROUNDS ─── */
.bg-dark  { background: var(--dk); color: var(--tx-d); }
.bg-light { background: var(--lt); color: var(--tx-l); }


/* ── LABEL ─── */
.label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 16px;
}


/* ── SECTION HEADS ─── */
.sec-head { margin-bottom: 56px; }

.sec-head h2,
h2 {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.bg-dark  h2 { color: var(--tx-d); }
.bg-light h2 { color: var(--tx-l); }


/* ── BUTTON ─── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--tx-d);
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.btn:hover {
  border-color: var(--tx-d);
  color: var(--tx-d);
  opacity: 1;
}

/* Button auf hellem Hintergrund */
.bg-light .btn {
  color: var(--tx-l);
  border-color: rgba(0,0,0,0.25);
}
.bg-light .btn:hover { border-color: var(--tx-l); }


/* ── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(17,17,16,0.96);
  border-bottom-color: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--tx-d);
  opacity: 1;
  transition: opacity 0.18s;
}
.nav-logo:hover { opacity: 0.6; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--mu-d);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.18s;
  opacity: 1;
}
.nav-links a:hover { color: var(--tx-d); opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--tx-d);
  transition: all 0.2s;
}


/* ── HERO — rein typografisch ─── */
.hero {
  background: var(--dk);
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  padding-top: 120px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mu-d);
  margin-bottom: 32px;
}
.hero h1 {
  font-family: var(--font-h);
  font-size: clamp(3.6rem, 7.5vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--tx-d);
  margin-bottom: 52px;
}
.hero-foot {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-quals {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mu-d);
  line-height: 1.8;
}


/* ── KENNZAHLEN ─── */
.metrics {
  background: var(--dk-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.metric {
  padding: 40px var(--pad) 40px 0;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.metric:first-child { padding-left: 0; }
.metric:last-child  { border-right: none; }

.metric strong {
  display: block;
  font-family: var(--font-h);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ac);
  line-height: 1;
  margin-bottom: 8px;
}
.metric span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mu-d);
  line-height: 1.5;
}


/* ── SECTIONS ─── */
.section { padding: 96px 0; }


/* ── SITUATIONEN ─── */
.sits {
  border-top: 1px solid var(--lt-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.sit {
  display: flex;
  gap: 18px;
  padding: 28px 40px 28px 0;
  border-bottom: 1px solid var(--lt-3);
}
.sit:nth-child(even) {
  padding-left: 40px;
  padding-right: 0;
  border-left: 1px solid var(--lt-3);
}
.sit > span {
  color: var(--ac);
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 2px;
  font-size: 0.9rem;
}
.sit p {
  font-size: 0.96rem;
  color: var(--mu-l);
  line-height: 1.75;
}
.sit p strong { color: var(--tx-l); }


/* ── SERVICES ─── */
.services {
  border-top: 1px solid rgba(255,255,255,0.07);
}
.service {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0 56px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s;
}
.service:hover {
  background: var(--dk-3);
  margin: 0 calc(-1 * var(--pad));
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.service-hd { padding-top: 2px; }
.svc-n {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ac);
  margin-bottom: 10px;
}
.service-hd h3 {
  font-family: var(--font-h);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--tx-d);
}
.service ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 2px;
}
.service li {
  font-size: 0.94rem;
  color: var(--mu-d);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.service li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--ac);
}


/* ── QUALIFIKATION ─── */
.quals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--lt-3);
  border-left: 1px solid var(--lt-3);
}
.qual {
  padding: 36px;
  border-right: 1px solid var(--lt-3);
  border-bottom: 1px solid var(--lt-3);
}
.qual h3 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mu-l);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lt-3);
}
.qual ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qual li {
  font-size: 0.92rem;
  color: var(--mu-l);
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}
.qual li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 1px;
  background: var(--ac);
}
.qual li strong { color: var(--tx-l); }


/* ── ERFAHRUNG ─── */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}
.exp-grid h2 { margin-bottom: 24px; }
.exp-grid p {
  font-size: 0.97rem;
  color: var(--mu-d);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 520px;
}
.exp-grid p strong { color: var(--tx-d); }

.exp-aside {
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
}
.exp-item {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exp-item:last-child { border-bottom: none; }
.exp-item b {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ac);
}
.exp-item span {
  font-size: 0.88rem;
  color: var(--mu-d);
  line-height: 1.55;
}


/* ── KONTAKT ─── */
.kontakt-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}
.kontakt-info h2 { margin-bottom: 14px; }
.kontakt-info > p {
  font-size: 0.94rem;
  color: var(--mu-l);
  margin-bottom: 36px;
  line-height: 1.7;
}
.clist {
  list-style: none;
}
.clist li {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--lt-3);
  font-size: 0.88rem;
  align-items: baseline;
}
.clist li:first-child { border-top: 1px solid var(--lt-3); }
.clist b {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mu-l);
}
.clist a, .clist span { color: var(--tx-l); }
.clist a:hover { color: var(--ac); opacity: 1; }

/* Form */
.kform {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mu-l);
}
.field input,
.field textarea {
  background: var(--lt-2);
  border: 1px solid var(--lt-3);
  border-radius: 0;
  padding: 11px 14px;
  color: var(--tx-l);
  font-family: var(--font-b);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.18s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #b0ada8; }
.field input:focus,
.field textarea:focus {
  border-color: var(--tx-l);
  background: #fff;
}
.fnote {
  font-size: 0.76rem;
  color: var(--mu-l);
  margin-top: -6px;
}


/* ── FOOTER ─── */
.footer {
  background: var(--dk-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-name {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--mu-d);
  margin-bottom: 4px;
}
.footer-sub {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.2);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.78rem;
  color: var(--mu-d);
  opacity: 1;
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--tx-d); }
.footer-links span { font-size: 0.76rem; color: rgba(255,255,255,0.15); }


/* ── MODAL ─── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.active { display: flex; }
.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--lt);
  padding: 48px;
  max-width: 540px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid var(--lt-3);
}
.modal-box h2 {
  font-family: var(--font-h);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--tx-l);
  margin-bottom: 28px;
}
.modal-box p {
  font-size: 0.91rem;
  color: var(--mu-l);
  line-height: 1.75;
  margin-bottom: 14px;
}
.modal-x {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--mu-l);
  cursor: pointer;
  line-height: 1;
  transition: color 0.18s;
}
.modal-x:hover { color: var(--tx-l); }


/* ── RESPONSIVE ─── */
@media (max-width: 960px) {
  :root { --pad: 28px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric { padding: 32px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .sits { grid-template-columns: 1fr; }
  .sit:nth-child(even) { padding-left: 0; border-left: none; }
  .service { grid-template-columns: 1fr; gap: 14px; }
  .quals { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; gap: 48px; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 52px; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .section { padding: 72px 0; }
  .hero { padding-bottom: 60px; }
  .hero h1 { font-size: clamp(3.2rem, 14vw, 5rem); }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .service:hover { margin: 0; padding-left: 0; padding-right: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--dk-2);
    flex-direction: column;
    padding: 24px var(--pad) 32px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}
